package news

type ListRequest struct {
	Page      int       `form:"page" binding:"required" validate:"required"`
	Limit     int       `form:"limit" binding:"required" validate:"required"`
	Type      string    `form:"type"`
	Title     *string   `form:"title"`
	Desc      *string   `form:"desc"`
	Keyword   *string   `form:"keyword"`
	Text      *string   `form:"text"`
	Content   *string   `form:"content"`
	CreatedAt *[]string `form:"created_at"`
}

type ListResponse struct {
	List  []Drafts `json:"list"`
	Total int64    `json:"total"`
	Page  int      `json:"page"`
	Limit int      `json:"limit"`
}

type Drafts struct {
	Id                    int    `json:"id"`
	TypeClassifyId        int    `json:"type_classify_id"`
	TypeClassifyTitle     string `json:"type_classify_title"`
	BusinessClassifyId    int    `json:"business_classify_id"`
	BusinessClassifyTitle string `json:"business_classify_title"`
	Title                 string `json:"title"`
	SeoDesc               string `json:"seo_desc"`
	SeoKeyword            string `json:"seo_keyword"`
	Content               string `json:"content"`
	Text                  string `json:"text"`
	CreatedAt             string `json:"created_at"`
}
